[INFO] fetching crate mmtk 0.18.0...
[INFO] checking mmtk-0.18.0 against master#ed1ce580ec27ffcfda1a95512e69185442f75ebe for pr-112999
[INFO] extracting crate mmtk 0.18.0 into /workspace/builds/worker-3-tc1/source
[INFO] validating manifest of crates.io crate mmtk 0.18.0 on toolchain ed1ce580ec27ffcfda1a95512e69185442f75ebe
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ed1ce580ec27ffcfda1a95512e69185442f75ebe" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] removed /workspace/builds/worker-3-tc1/source/rust-toolchain
[INFO] started tweaking crates.io crate mmtk 0.18.0
[INFO] finished tweaking crates.io crate mmtk 0.18.0
[INFO] tweaked toml for crates.io crate mmtk 0.18.0 written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ed1ce580ec27ffcfda1a95512e69185442f75ebe" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ed1ce580ec27ffcfda1a95512e69185442f75ebe" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded mmtk-macros v0.18.0
[INFO] [stderr]   Downloaded pfm v0.1.0-beta.3
[INFO] [stderr]   Downloaded enum-map v2.5.0
[INFO] [stderr]   Downloaded perf-event-open-sys v1.0.1
[INFO] [stderr]   Downloaded enum-map-derive v0.11.0
[INFO] [stderr]   Downloaded atomic-traits v0.3.0
[INFO] [stderr]   Downloaded built v0.6.1
[INFO] [stderr]   Downloaded cargo-lock v9.0.0
[INFO] [stderr]   Downloaded git2 v0.17.2
[INFO] [stderr]   Downloaded jemalloc-sys v0.5.3+5.3.0-patched
[INFO] [stderr]   Downloaded pfm-sys v0.0.15-libpfm4.533633ad
[INFO] [stderr]   Downloaded libgit2-sys v0.15.2+1.6.4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/opt/rustwide/cargo-home/bin/cargo" "+ed1ce580ec27ffcfda1a95512e69185442f75ebe" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 91bfb481f9e4995f03aa72bf07d53f47f04725d7b2fe7770ad18fc6bb58af634
[INFO] running `Command { std: "docker" "start" "-a" "91bfb481f9e4995f03aa72bf07d53f47f04725d7b2fe7770ad18fc6bb58af634", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "91bfb481f9e4995f03aa72bf07d53f47f04725d7b2fe7770ad18fc6bb58af634", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "91bfb481f9e4995f03aa72bf07d53f47f04725d7b2fe7770ad18fc6bb58af634", kill_on_drop: false }`
[INFO] [stdout] 91bfb481f9e4995f03aa72bf07d53f47f04725d7b2fe7770ad18fc6bb58af634
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/opt/rustwide/cargo-home/bin/cargo" "+ed1ce580ec27ffcfda1a95512e69185442f75ebe" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d99ae2ada73e813123a65f9f9624ce21a2c8f29c40823bf9a46a0f82ef26e613
[INFO] running `Command { std: "docker" "start" "-a" "d99ae2ada73e813123a65f9f9624ce21a2c8f29c40823bf9a46a0f82ef26e613", kill_on_drop: false }`
[INFO] [stderr]    Compiling serde v1.0.164
[INFO] [stderr]    Compiling libc v0.2.147
[INFO] [stderr]    Compiling tinyvec_macros v0.1.1
[INFO] [stderr]    Compiling thiserror v1.0.40
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling unicode-bidi v0.3.13
[INFO] [stderr]    Compiling percent-encoding v2.3.0
[INFO] [stderr]    Compiling crossbeam-utils v0.8.16
[INFO] [stderr]    Compiling tinyvec v1.6.0
[INFO] [stderr]    Compiling pest v2.7.0
[INFO] [stderr]    Compiling form_urlencoded v1.2.0
[INFO] [stderr]    Compiling semver v1.0.17
[INFO] [stderr]    Compiling io-lifetimes v1.0.11
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.15
[INFO] [stderr]    Compiling rustix v0.37.20
[INFO] [stderr]    Compiling jobserver v0.1.26
[INFO] [stderr]    Compiling crossbeam-queue v0.3.8
[INFO] [stderr]    Compiling cc v1.0.79
[INFO] [stderr]    Compiling unicode-normalization v0.1.22
[INFO] [stderr]     Checking crossbeam-channel v0.5.8
[INFO] [stderr]     Checking crossbeam-deque v0.8.3
[INFO] [stderr]     Checking log v0.4.19
[INFO] [stderr]    Compiling semver-parser v0.10.2
[INFO] [stderr]     Checking crossbeam v0.8.2
[INFO] [stderr]    Compiling idna v0.4.0
[INFO] [stderr]     Checking num_cpus v1.15.0
[INFO] [stderr]     Checking atomic_refcell v0.1.10
[INFO] [stderr]     Checking atomic v0.5.3
[INFO] [stderr]     Checking strum v0.24.1
[INFO] [stderr]    Compiling semver v0.11.0
[INFO] [stderr]    Compiling libz-sys v1.1.9
[INFO] [stderr]    Compiling libgit2-sys v0.15.2+1.6.4
[INFO] [stderr]    Compiling url v2.4.0
[INFO] [stderr]    Compiling rustc_version v0.3.3
[INFO] [stderr]    Compiling sys-info v0.9.1
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]     Checking is-terminal v0.4.7
[INFO] [stderr]     Checking env_logger v0.10.0
[INFO] [stderr]    Compiling atomic-traits v0.3.0
[INFO] [stderr]    Compiling enum-map-derive v0.11.0
[INFO] [stderr]    Compiling strum_macros v0.24.3
[INFO] [stderr]    Compiling mmtk-macros v0.18.0
[INFO] [stderr]    Compiling toml_datetime v0.6.3
[INFO] [stderr]    Compiling serde_spanned v0.6.3
[INFO] [stderr]    Compiling toml_edit v0.19.11
[INFO] [stderr]     Checking enum-map v2.5.0
[INFO] [stderr]    Compiling toml v0.7.5
[INFO] [stderr]    Compiling cargo-lock v9.0.0
[INFO] [stderr]    Compiling git2 v0.17.2
[INFO] [stderr]    Compiling built v0.6.1
[INFO] [stderr]    Compiling mmtk v0.18.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/policy/sft_map.rs:162:18
[INFO] [stdout]     |
[INFO] [stdout] 162 |             &mut *(self as *const _ as *mut _)
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[deny(cast_ref_to_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/policy/sft_map.rs:364:18
[INFO] [stdout]     |
[INFO] [stdout] 364 |             &mut *(self as *const _ as *mut _)
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/policy/sft_map.rs:454:18
[INFO] [stdout]     |
[INFO] [stdout] 454 |             &mut *(self as *const _ as *mut _)
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]   --> src/scheduler/gc_work.rs:45:56
[INFO] [stdout]    |
[INFO] [stdout] 45 |         let plan_mut: &mut C::PlanType = unsafe { &mut *(self.plan as *const _ as *mut _) };
[INFO] [stdout]    |                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/scheduler/gc_work.rs:116:56
[INFO] [stdout]     |
[INFO] [stdout] 116 |         let plan_mut: &mut C::PlanType = unsafe { &mut *(self.plan as *const _ as *mut _) };
[INFO] [stdout]     |                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/scheduler/gc_work.rs:237:62
[INFO] [stdout]     |
[INFO] [stdout] 237 |         let plan_mut: &mut dyn Plan<VM = VM> = unsafe { &mut *(&*mmtk.plan as *const _ as *mut _) };
[INFO] [stdout]     |                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/util/heap/layout/fragmented_mapper.rs:248:14
[INFO] [stdout]     |
[INFO] [stdout] 248 |         &mut *(self as *const _ as *mut _)
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/util/heap/layout/map32.rs:203:26
[INFO] [stdout]     |
[INFO] [stdout] 203 |                       &mut *(*fl as *const CommonFreeListPageResource
[INFO] [stdout]     |  __________________________^
[INFO] [stdout] 204 | |                         as *mut CommonFreeListPageResource)
[INFO] [stdout]     | |___________________________________________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/util/heap/layout/map32.rs:267:14
[INFO] [stdout]     |
[INFO] [stdout] 267 |         &mut *(self as *const _ as *mut _)
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/util/heap/layout/map64.rs:184:68
[INFO] [stdout]     |
[INFO] [stdout] 184 |                 let fl_mut: &mut RawMemoryFreeList = unsafe { &mut *(fl as *const _ as *mut _) };
[INFO] [stdout]     |                                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/util/heap/layout/map64.rs:198:35
[INFO] [stdout]     |
[INFO] [stdout] 198 |                     unsafe { &mut *(fl as *const _ as *mut _) };
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/util/heap/layout/map64.rs:231:14
[INFO] [stdout]     |
[INFO] [stdout] 231 |         &mut *(self as *const _ as *mut _)
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/util/heap/freelistpageresource.rs:100:49
[INFO] [stdout]     |
[INFO] [stdout] 100 |         let self_mut: &mut Self = unsafe { &mut *(self as *const _ as *mut _) };
[INFO] [stdout]     |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/util/heap/freelistpageresource.rs:242:49
[INFO] [stdout]     |
[INFO] [stdout] 242 |         let self_mut: &mut Self = unsafe { &mut *(self as *const _ as *mut _) };
[INFO] [stdout]     |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/util/heap/freelistpageresource.rs:328:32
[INFO] [stdout]     |
[INFO] [stdout] 328 |         let me = unsafe { &mut *(self as *const _ as *mut Self) };
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]   --> src/util/int_array_freelist.rs:67:35
[INFO] [stdout]    |
[INFO] [stdout] 67 |                     unsafe { &mut *(p as *const IntArrayFreeList as *mut IntArrayFreeList) };
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 16 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `mmtk` (lib) due to 17 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/policy/sft_map.rs:162:18
[INFO] [stdout]     |
[INFO] [stdout] 162 |             &mut *(self as *const _ as *mut _)
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[deny(cast_ref_to_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/policy/sft_map.rs:364:18
[INFO] [stdout]     |
[INFO] [stdout] 364 |             &mut *(self as *const _ as *mut _)
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/policy/sft_map.rs:454:18
[INFO] [stdout]     |
[INFO] [stdout] 454 |             &mut *(self as *const _ as *mut _)
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]   --> src/scheduler/gc_work.rs:45:56
[INFO] [stdout]    |
[INFO] [stdout] 45 |         let plan_mut: &mut C::PlanType = unsafe { &mut *(self.plan as *const _ as *mut _) };
[INFO] [stdout]    |                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/scheduler/gc_work.rs:116:56
[INFO] [stdout]     |
[INFO] [stdout] 116 |         let plan_mut: &mut C::PlanType = unsafe { &mut *(self.plan as *const _ as *mut _) };
[INFO] [stdout]     |                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/scheduler/gc_work.rs:237:62
[INFO] [stdout]     |
[INFO] [stdout] 237 |         let plan_mut: &mut dyn Plan<VM = VM> = unsafe { &mut *(&*mmtk.plan as *const _ as *mut _) };
[INFO] [stdout]     |                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/util/heap/layout/fragmented_mapper.rs:248:14
[INFO] [stdout]     |
[INFO] [stdout] 248 |         &mut *(self as *const _ as *mut _)
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/util/heap/layout/map32.rs:203:26
[INFO] [stdout]     |
[INFO] [stdout] 203 |                       &mut *(*fl as *const CommonFreeListPageResource
[INFO] [stdout]     |  __________________________^
[INFO] [stdout] 204 | |                         as *mut CommonFreeListPageResource)
[INFO] [stdout]     | |___________________________________________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/util/heap/layout/map32.rs:267:14
[INFO] [stdout]     |
[INFO] [stdout] 267 |         &mut *(self as *const _ as *mut _)
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/util/heap/layout/map64.rs:184:68
[INFO] [stdout]     |
[INFO] [stdout] 184 |                 let fl_mut: &mut RawMemoryFreeList = unsafe { &mut *(fl as *const _ as *mut _) };
[INFO] [stdout]     |                                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/util/heap/layout/map64.rs:198:35
[INFO] [stdout]     |
[INFO] [stdout] 198 |                     unsafe { &mut *(fl as *const _ as *mut _) };
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/util/heap/layout/map64.rs:231:14
[INFO] [stdout]     |
[INFO] [stdout] 231 |         &mut *(self as *const _ as *mut _)
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/util/heap/freelistpageresource.rs:100:49
[INFO] [stdout]     |
[INFO] [stdout] 100 |         let self_mut: &mut Self = unsafe { &mut *(self as *const _ as *mut _) };
[INFO] [stdout]     |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/util/heap/freelistpageresource.rs:242:49
[INFO] [stdout]     |
[INFO] [stdout] 242 |         let self_mut: &mut Self = unsafe { &mut *(self as *const _ as *mut _) };
[INFO] [stdout]     |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/util/heap/freelistpageresource.rs:328:32
[INFO] [stdout]     |
[INFO] [stdout] 328 |         let me = unsafe { &mut *(self as *const _ as *mut Self) };
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]   --> src/util/int_array_freelist.rs:67:35
[INFO] [stdout]    |
[INFO] [stdout] 67 |                     unsafe { &mut *(p as *const IntArrayFreeList as *mut IntArrayFreeList) };
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 16 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `mmtk` (lib test) due to 17 previous errors
[INFO] running `Command { std: "docker" "inspect" "d99ae2ada73e813123a65f9f9624ce21a2c8f29c40823bf9a46a0f82ef26e613", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d99ae2ada73e813123a65f9f9624ce21a2c8f29c40823bf9a46a0f82ef26e613", kill_on_drop: false }`
[INFO] [stdout] d99ae2ada73e813123a65f9f9624ce21a2c8f29c40823bf9a46a0f82ef26e613
